package com.qf.mapper;
/*
   @author 86155
   @ClassName: com.qf.mapper.ProductMapper
   @Description: 该类的功能描述
   @date: 2021/9/29 20:47 
*/

import com.qf.entity.Banner;
import com.qf.entity.Product;
import com.qf.request.RequestParams;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
/*    //添加
    int insertBanner(@Param("banner") Banner banner);
    //修改banner
    int updateBanner(@Param("banner") Banner banner);
    //删除,根据id
    int deleteBanner(@Param("bid") Long bid);
    List<Banner> selectAllBanner(@Param("requestParams") RequestParams requestParams);*/


    int insertProduct(@Param("product") Product product);

    int updateProduct(@Param("product") Product product);

    int deleteProduct(@Param("pid") Long pid);

    List<Product> selectAllProduct(@Param("status") Integer status,@Param("productName") String productName);

}
